package cn.edu.just.firstjavaapp.l3;

public class ArrayCopyDemo {
    public static void main(String[] args) {
        int[] a = {10,20,30,40,50,60,70,80,90,100};
        int[] b = new int[10];
//        System.arraycopy(a,3,b,0,5);
//        for(int i = 0;i<b.length;i++){
//            System.out.print(b[i]+" ");
//        }
        for(int x:a){  //for-each, enhanced for-loop
            System.out.print(x+" ");
        }
    }
}
